package com.suixun;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;

/**
 * 功能描述: 启动文件
 * 
 * @author jacky
 * @date 2018年1月5日下午1:06:44
 */
@SpringBootApplication
@MapperScan("com.suixun.dao*")
public class WebsiteApplication extends SpringBootServletInitializer {
	public static void main(String[] args) {
		SpringApplication.run(WebsiteApplication.class, args);
	}

	/**
	 * 功能描述: 继承SpringBootServletInitializer后方可打包独立部署到服务器容器里面
	 * 
	 * @param builder
	 * @return
	 */
	@Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
		return builder.sources(WebsiteApplication.class);
	}
}
